#include "GlobalHead.h"

char* env[] = {"userName=zhangsan","passwd=123456",NULL};
char* argv[] = {"test",NULL};

int main()
{
    //execl("/usr/bin/ls","-a","-l",NULL);
    //execl("./fork","fork",NULL);

    //char *argv[] = {"ls","-a","-l",NULL};
    //execv("/usr/bin/ls",argv);

    //execlp("ls","ls","-a","-l",NULL);   //环境变量
    
    //char *argv[] = {"ls","-a","-l",NULL};
    //execvp("ls",argv);

    
    execle("./test","test",NULL,env);

    //execve("./test",argv,env);

    return 0;
}